package com.example.a10908.retorfitrxjava.model;

import com.example.a10908.retorfitrxjava.callback.ListviewDataCallBack;
import com.example.a10908.retorfitrxjava.url.URL;
import com.example.a10908.retorfitrxjava.utils.HttpUtils;

/**
 * Created by 10908 on 2016/12/16.
 */

public class IListNetWorkModel implements ListNetWorkModel {
   private ListviewDataCallBack callBack;

    public IListNetWorkModel(ListviewDataCallBack callBack) {
        this.callBack = callBack;
    }

    @Override
    public void startNetWork(String path) {
        HttpUtils httpUtils = HttpUtils.getHttpUtils();
        httpUtils.setCallBackListener(callBack);
        httpUtils.listViewNet(URL.url, path);
    }
}
